﻿using System;
using UnityEngine;

public class Action2006 : GameAction {
    private ActionResult actionResult;

    public Action2006 ( )
        : base(2006) {
    }

    protected override void SendParameter (NetWriter writer, ActionParam actionParam) {
        writer.writeByte("IsCall", actionParam.Get<byte>("isCall"));
    }

    protected override void DecodePackage (NetReader reader) {
        actionResult = new ActionResult( );
        actionResult["IsEnd"] = reader.getByte( );
        actionResult["LandlordId"] = reader.getInt( );
        actionResult["LandlordName"] = reader.readString( );
        actionResult["MultipleNum"] = reader.getInt( );
        actionResult["AnteNum"] = reader.getInt( );
        actionResult["IsCall"] = reader.getByte( );
        actionResult["IsRob"] = reader.getByte( );
    }

    public override ActionResult GetResponseData ( ) {
        return actionResult;
    }
}
